package day12;

public class TV {
    private String color;
    private int price;
    private int size;
    Remote a;

    public TV(String color, int price, int size, Remote a) {
        this.color = color;
        this.price = price;
        this.size = size;
        this.a = a;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Remote getA() {
        return a;
    }

    public void setA(Remote a) {
        this.a = a;
    }
    public void turnon(){
        a.turnon();
    }
    public void turnoff(){
        a.turnoff();
    }
    public void changchannel(){
        a.changechannel();
    }
}
